package com.ncepu.clubmanagement.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PersonWithSchoolName {
    private Integer id;
    private String account;
    private String password;
    private String userName;
    private String email;
    private String phoneNum;
    private String schName;
    private short sex;
    private String headImage;  // 头像
    public Person toPerson(int schId) {
        return new Person(id, account, password, userName, email, phoneNum, schId, sex, headImage);
    }
}
